Skip to content

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Oct 6, 2025

What changes were proposed in this pull request?

This PR proposes an improvement to allow to pass optionaj JVM args to spark-connect-scala-client through an environment variable SCJVM_ARGS.

Why are the changes needed?

Different from other REPL tools like spark-shell, spark-connect-scala-client doesn't support optional JVM args. --driver-java-options doesn't affect client side.

Does this PR introduce any user-facing change?

Yes but doesn't break compatibility.

How was this patch tested?

To use debugger, set -agentlib:jdwp=transport=dt_socket,suspend=n,server=y,address=9876 to SCJVM_ARGS, and I confirmed it worked.

Was this patch authored or co-authored using generative AI tooling?

No.

@sarutak sarutak changed the title [SPARK-53808][CONNECT] Allow to pass optional JVM options to spark-connect-scala-client [SPARK-53808][CONNECT] Allow to pass optional JVM args to spark-connect-scala-client Oct 6, 2025
-Dio.netty.tryReflectionSetAccessible=true \
--enable-native-access=ALL-UNNAMED"
--enable-native-access=ALL-UNNAMED \
$JVM_ARGS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be "SCJVM_ARGS", and document at line 34?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds better. Thanks.

@hvanhovell
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants